
package com.yimixian.app.ui;

import android.content.Context;
import android.graphics.Point;
import android.util.AttributeSet;
import android.widget.FrameLayout;

/**
 * Created by songzhiyang on 2015/9/1.
 */
public class AnimationFrameLayout extends FrameLayout {
    public AnimationFrameLayout(Context context) {
        super(context);
    }

    public AnimationFrameLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public AnimationFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public Point getCartLocationPoint() {
        int[] location = new int[2];
        this.getLocationInWindow(location);
        return new Point(location[0], location[1]);
    }
}
